#pragma once
#include <gst/gst.h>
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <opencv2/opencv.hpp>
#include <gst/app/gstappsrc.h>




class StreamServer
{
public:
	StreamServer();
	~StreamServer();
	void set_target_ip(std::string ip);
	void start();
private:
	static void cb_need_data(GstElement *appsrc, guint unused_size, gpointer user_data);
	std::string target_ip;
	
};

